
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.WtUser;
import com.sasis.dao.WtUserDao;
import com.sasis.service.WtUserManager;

public class WtUserManagerImpl extends BaseManager implements WtUserManager {
    private WtUserDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setWtUserDao(WtUserDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.WtUserManager#getWtUsers(com.sasis.model.WtUser)
     */
    public List getWtUsers(final WtUser wtUser) {
        return dao.getWtUsers(wtUser);
    }

    /**
     * @see com.sasis.service.WtUserManager#getWtUser(String wtUserid)
     */
    public WtUser getWtUser(final String wtUserid) {
        return dao.getWtUser(new String(wtUserid));
    }

    /**
     * @see com.sasis.service.WtUserManager#saveWtUser(WtUser wtUser)
     */
    public void saveWtUser(WtUser wtUser) {
        dao.saveWtUser(wtUser);
    }
    
    /**
     * @see com.sasis.dao.WtUserDao#saveWtUser(WtUser wtUser)
     */    
    public void updateWtUser(final WtUser wtUser){
    	 dao.updateWtUser(wtUser);
    }
    /**
     * @see com.sasis.service.WtUserManager#removeWtUser(String wtUserid)
     */
    public void removeWtUser(final String wtUserid) {
        dao.removeWtUser(new String(wtUserid));
    }
}
